package pe.edu.unmsm.fisi.sisconteg.business.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import pe.edu.unmsm.fisi.sisconteg.business.service.CertificadoService;
import pe.edu.unmsm.fisi.sisconteg.domain.model.Certificado;
import pe.edu.unmsm.fisi.sisconteg.repository.dao.CertificadoDAO;

@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class CertificadoServiceImpl implements CertificadoService {

	@Resource
	private CertificadoDAO certificadoDAO;
	
	@Override
	public List<Certificado> listCertificados() throws DataAccessException {
		return certificadoDAO.listCertificados();
	}

}
